module.exports = {
  devServer: {
    port: 8999, //  端口号的配置
    open: true, // 自动打开浏览器
    proxy: {
      '/api': {
          target: 'http://localhost:8999',
          changeOrigin: true,
          pathRewrite: {
              '/api': ''
          }
      }
  }
  },
  configureWebpack: {
    resolve: {
      alias: {
        components: "@/components",
        assets: "@/assets",
        views: "@/views",
        utils: "@/utils",
      }
    }
  },
}